package cn.hongwei.controller;

import cn.hongwei.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Great
 * @email 1224028994@qq.com
 */
@RestController
@RequestMapping("order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("save")
    public String createOrder(){
        orderService.createOrder();
        return "创建订单成功";
    }
}
